package com.project.utils;

import com.project.vo.DbMessageVO;

/**
 * @Author: jia-qiang ljq1024.cc
 * @desc:
 * @Date: 2024-04-29-20:25
 */
public class DbMessageHolder {
    private static final ThreadLocal<DbMessageVO> tl = new ThreadLocal<>();

    public static void saveDbMessageVO(DbMessageVO dbMessage){
        tl.set(dbMessage);
    }

    public static DbMessageVO getDbMessage(){
        return tl.get();
    }

    public static void removeDbMessage(){
        tl.remove();
    }
}
